<?php

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';
ini_set('memory_limit', '512M');


echo (ini_get('memory_limit')) , PHP_EOL;
$brand_id = $argv[1] ?? [];
$exec = $argv[2] ?? false; //true:执行修复数据
$debug = $argv[3] ?? false; //true:开启日志


if ($debug) \Biz\service\wiki\WikiContentSync::debug();

if ($exec) \Biz\service\wiki\WikiContentSync::exec();

$all_scan_brand_id = \Biz\cache\brand\BrandScanCron::all();

echo "total:", count($all_scan_brand_id), PHP_EOL;
echo "exec:", $exec, PHP_EOL;
if ($all_scan_brand_id) {
//    \Biz\service\wiki\WikiContentSync::scanEsContent($brand_id);
}





